package com.jsg.sl651.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 水系统分区代码
 */
@AllArgsConstructor
@Getter
public enum WaterSystemZoningCode {
    HLJGLY(WatershedCode.HLJ_LY,1,"黑龙江干流"),
    EEGNH(WatershedCode.HLJ_LY,2,"额尔古纳河"),
    MLEH(WatershedCode.HLJ_LY,3,"梅拉尔河"),
    HLJMHYXZL(WatershedCode.HLJ_LY,4,"黑龙江漠河以下支流"),
    WSLJ(WatershedCode.HLJ_LY,5,"乌苏里江"),
    SFH(WatershedCode.HLJ_LY,6,"绥芬河"),
    SHJGL(WatershedCode.HLJ_LY,7,"松花江干流"),
    SHJSYQSD(WatershedCode.HLJ_LY,8,"松花江上游区上段"),
    SHJSYQXD(WatershedCode.HLJ_LY,9,"松花江上游区下段"),
    SHJXYSD(WatershedCode.HLJ_LY,10,"松花江下游区上段"),
    SHJXYXD(WatershedCode.HLJ_LY,11,"松花江下游区下段"),
    NJGLJNJQSD(WatershedCode.HLJ_LY,12,"嫩江干流及嫰江区上段"),
    NJQZD(WatershedCode.HLJ_LY,13,"嫩江区中段"),
    NJQXD(WatershedCode.HLJ_LY,14,"嫩江区下段"),
    TMJ(WatershedCode.HLJ_LY,15,"图们江"),
    YLJ(WatershedCode.HLJ_LY,16,"鸭绿江"),
    XLH(WatershedCode.LH_LY, 1, "西辽河"),
    XLMLH(WatershedCode.LH_LY, 2, "西拉木仑河"),
    WEJMLH_XKH(WatershedCode.LH_LY, 3, "乌尔吉木河，新开河"),
    JLH(WatershedCode.LH_LY, 4, "教来河"),
    DLH(WatershedCode.LH_LY, 5, "东辽河"),
    LHGL(WatershedCode.LH_LY, 6, "辽河干流"),
    ZSTH(WatershedCode.LH_LY, 7, "招苏太河"),
    QHJLHZAZL(WatershedCode.LH_LY, 8, "清河及辽河左岸支流"),
    LHJLHYAZL(WatershedCode.LH_LY, 9, "柳河及辽河右岸支流"),
    RYH(WatershedCode.LH_LY, 10, "绕阳河"),
    HTH(WatershedCode.LH_LY, 11, "浑太河"),
    DLH_1(WatershedCode.LH_LY, 12, "大凌河"),
    LNBHAZH(WatershedCode.LH_LY, 13, "辽宁渤海岸诸河"),
    LNHHAZH(WatershedCode.LH_LY, 14, "辽宁黄海岸诸河"),
    HH(WatershedCode.HH_0_LY, 1, "滦河"),
    HBYHZH(WatershedCode.HH_0_LY, 2, "河北沿海诸河"),
    ZBH(WatershedCode.HH_0_LY, 3, "潮白河"),
    JYH(WatershedCode.HH_0_LY, 4, "蓟运河"),
    BYH(WatershedCode.HH_0_LY, 5, "北运河"),
    HHGL(WatershedCode.HH_0_LY, 6, "海河干流"),
    YDH(WatershedCode.HH_0_LY, 7, "永定河"),
    DQH(WatershedCode.HH_0_LY, 8, "大清河"),
    ZYH(WatershedCode.HH_0_LY, 9, "子牙河"),
    NYH(WatershedCode.HH_0_LY, 10, "南运河"),
    DHMJHDHXH(WatershedCode.HH_0_LY, 11, "徒骇、马颊河、德惠新河"),
    HHGL_1(WatershedCode.HH_1_LY, 1, "黄河干流"),
    HHSYQSD(WatershedCode.HH_1_LY, 2, "黄河上游区上段"),
    YH(WatershedCode.HH_1_LY, 3, "洮河"),
    HS(WatershedCode.HH_1_LY, 4, "湟水"),
    HHSYQXD(WatershedCode.HH_1_LY, 5, "黄河上游区下段"),
    HHXYQSD(WatershedCode.HH_1_LY, 6, "黄河下游区上段"),
    KYH(WatershedCode.HH_1_LY, 7, "窟野河"),
    WDH(WatershedCode.HH_1_LY, 8, "无定河"),
    HHXYQXD(WatershedCode.HH_1_LY, 9, "黄河下游区下段"),
    FH(WatershedCode.HH_1_LY, 10, "汾河"),
    WH(WatershedCode.HH_1_LY, 11, "渭河"),
    JH(WatershedCode.HH_1_LY, 12, "泾河"),
    BLH(WatershedCode.HH_1_LY, 13, "北洛河"),
    HHXYQ(WatershedCode.HH_1_LY, 14, "黄河下游区"),
    DWH(WatershedCode.HH_1_LY, 15, "大汶河"),
    YLH(WatershedCode.HH_1_LY, 16, "伊洛河"),
    QH(WatershedCode.HH_1_LY, 17, "沁河"),
    SDYHZH(WatershedCode.HH_1_LY, 18, "山东沿海诸河"),
    HHGL_2(WatershedCode.HH_2_LY,1 ,"淮河干流"),
    HHSYQ(WatershedCode.HH_2_LY, 2, "淮河上游区"),
    HH_1(WatershedCode.HH_2_LY, 3, "洪河"),
    HHZYQ(WatershedCode.HH_2_LY, 4, "淮河中游区"),
    SH(WatershedCode.HH_2_LY, 5, "史河"),
    YH_1(WatershedCode.HH_2_LY, 6, "颍河"),
    JH_2(WatershedCode.HH_2_LY, 7, "淠河"),
    WH_1(WatershedCode.HH_2_LY, 8, "涡河"),
    HZH(WatershedCode.HH_2_LY, 9, "洪泽湖"),
    HHXYQ_1(WatershedCode.HH_2_LY, 10, "淮河下游区"),
    QHMH(WatershedCode.HH_2_LY, 11, "沂河、沭河"),
    YSHJNSHQ(WatershedCode.HH_2_LY, 12, "运泗河及南四湖区"),
    SDBHZH(WatershedCode.HH_2_LY, 13, "山东滨海诸河"),
    CJGL(WatershedCode.CJ_LY, 1, "长江干流"),
    JSJSD(WatershedCode.CJ_LY, 2, "金沙江上段"),
    YLJ_1(WatershedCode.CJ_LY, 3, "雅砻江"),
    JSJXD(WatershedCode.CJ_LY, 4, "金沙江下段"),
    CJSYQ(WatershedCode.CJ_LY, 5, "长江上游区"),
    MTJ(WatershedCode.CJ_LY, 6, "岷沱江"),
    JLJ(WatershedCode.CJ_LY, 7, "嘉陵江"),
    WJ(WatershedCode.CJ_LY, 8, "乌江"),
    CJZYQSD(WatershedCode.CJ_LY, 9, "长江中游区上段"),
    QJNJ(WatershedCode.CJ_LY, 10, "清江、内荆河"),
    XJ(WatershedCode.CJ_LY, 11, "湘江"),
    ZZ(WatershedCode.CJ_LY, 12, "资水"),
    YN(WatershedCode.CJ_LY, 13, "沅水"),
    LD(WatershedCode.CJ_LY, 14, "澧水"),
    DTLHKHQ(WatershedCode.CJ_LY, 15, "洞庭湖四口及湖区"),
    CJZYQXD(WatershedCode.CJ_LY, 16, "长江中游区下段"),
    LJJS(WatershedCode.CJ_LY, 17, "陆水、金水"),
    HJGL(WatershedCode.CJ_LY, 18, "汉江干流及汉江上游区"),
    HJZYQ(WatershedCode.CJ_LY, 19, "汉江中游区"),
    DJTBH(WatershedCode.CJ_LY, 20, "丹江、唐白河"),
    HJXYQ(WatershedCode.CJ_LY, 21, "汉江下游区"),
    DCDJ(WatershedCode.CJ_LY, 22, "刁汊河、东荆河"),
    GJ(WatershedCode.CJ_LY, 23, "赣江"),
    FRXJ(WatershedCode.CJ_LY, 24, "抚河、信江"),
    RX(WatershedCode.CJ_LY, 25, "饶河、修水"),
    PYLHKHQ(WatershedCode.CJ_LY, 26, "鄱阳湖湖区"),
    CJXYQ(WatershedCode.CJ_LY, 27, "长江下游区"),
    HYH_AH_BMHC(WatershedCode.CJ_LY, 28, "华阳河、皖河、白免河"),
    CHC_QYJ_SYJ_CHR(WatershedCode.CJ_LY, 29, "巢湖、青弋江、水阳江、滁河"),
    TX(WatershedCode.CJ_LY, 30, "苕溪"),
    NX(WatershedCode.CJ_LY, 31, "南溪"),
    THHKHQ(WatershedCode.CJ_LY, 32, "太湖湖区"),
    HJHQ(WatershedCode.CJ_LY, 33, "杭嘉湖区"),
    HPJ(WatershedCode.CJ_LY, 34, "黄浦江"),
    QTNJ(WatershedCode.ZMT_LY, 1, "钱塘江"),
    CAOEHJ(WatershedCode.ZMT_LY, 2, "曹娥江"),
    NYJ(WatershedCode.ZMT_LY, 3, "甬江"),
    JIAOJ(WatershedCode.ZMT_LY, 4, "椒江"),
    OUJ(WatershedCode.ZMT_LY, 5, "瓯江"),
    FEIYUAN_OUJ(WatershedCode.ZMT_LY, 6, "飞云江、敖江"),
    ZEBDHYZH(WatershedCode.ZMT_LY, 7, "浙东北沿海诸河"),
    ZENHYZH(WatershedCode.ZMT_LY, 8, "浙南沿海诸河"),
    SHAXI(WatershedCode.ZMT_LY, 9, "沙溪"),
    FUTUNXI(WatershedCode.ZMT_LY, 10, "富屯溪"),
    JIANXI(WatershedCode.ZMT_LY, 11, "建溪"),
    MJZYXQ(WatershedCode.ZMT_LY, 12, "闽江中下游区"),
    JINJIANG(WatershedCode.ZMT_LY, 13, "晋江"),
    JIULIANGJ(WatershedCode.ZMT_LY, 14, "九龙江"),
    MINDHYZH(WatershedCode.ZMT_LY, 15, "闽东沿海诸河"),
    MINNHYZH(WatershedCode.ZMT_LY, 16, "闽南沿海诸河"),
    TAIBEIDQZH(WatershedCode.ZMT_LY, 17, "台北地区诸河"),
    TAIZHONGDQZH(WatershedCode.ZMT_LY, 18, "台中地区诸河"),
    TAINANDQZH(WatershedCode.ZMT_LY, 19, "台南地区诸河"),
    XIJG(WatershedCode.ZJ_LY, 1, "西江干流"),
    NPJ(WatershedCode.ZJ_LY, 2, "南盘江"),
    BPJ(WatershedCode.ZJ_LY, 3, "北盘江"),
    HSH(WatershedCode.ZJ_LY, 4, "红水河"),
    QIAN_LIJ(WatershedCode.ZJ_LY, 5, "黔江、柳江"),
    XINJ(WatershedCode.ZJ_LY, 6, "浔江"),
    YUJ(WatershedCode.ZJ_LY, 7, "郁江"),
    GUIJ(WatershedCode.ZJ_LY, 8, "桂江"),
    XIJ(WatershedCode.ZJ_LY, 9, "西江"),
    BEIJ(WatershedCode.ZJ_LY, 10, "北江"),
    DONGJ(WatershedCode.ZJ_LY, 11, "东江"),
    ZJSGHKQ1(WatershedCode.ZJ_LY, 12, "珠江三角洲河口区(一)"),
    ZJSGHKQ2(WatershedCode.ZJ_LY, 13, "珠江三角洲河口区(二)"),
    GUANNHYZH(WatershedCode.ZJ_LY, 14, "桂南沿海诸河"),
    HANJIANG(WatershedCode.ZJ_LY, 15, "韩江"),
    YUEDONGHYZH(WatershedCode.ZJ_LY, 16, "粤东沿海诸河"),
    YUEDXHYZH(WatershedCode.ZJ_LY, 17, "粤西沿海诸河"),
    HAINANDQZH(WatershedCode.ZJ_LY, 18, "海南岛诸河"),
    YUANJ(WatershedCode.ZNDX_LYQ, 1, "元江"),
    LANCANGJ(WatershedCode.ZNDX_LYQ, 2, "澜沧江"),
    NUJ(WatershedCode.ZNDX_LYQ, 3, "怒江"),
    DIANNANHYZH(WatershedCode.ZNDX_LYQ, 4, "滇南地区诸河"),
    DIANXIHYZH(WatershedCode.ZNDX_LYQ, 5, "滇西地区诸河"),
    YALUZANGBUJ(WatershedCode.ZNDX_LYQ, 6, "雅鲁藏布江"),
    NIANCHUR(WatershedCode.ZNDX_LYQ, 7, "年楚河"),
    LASAH(WatershedCode.ZNDX_LYQ, 8, "拉萨河"),
    NIYANGQU(WatershedCode.ZNDX_LYQ, 9, "尼羊曲"),
    PALONGZANGBU(WatershedCode.ZNDX_LYQ, 10, "帕龙藏布"),
    ZANNANHYZH(WatershedCode.ZNDX_LYQ, 11, "藏南地区诸河"),
    ZANGXIHYZH(WatershedCode.ZNDX_LYQ, 12, "藏西地区诸河"),
    EJZHQ(WatershedCode.NLHHJXJW_LHQ, 1, "额尔齐斯河区"),
    EMHQ(WatershedCode.NLHHJXJW_LHQ, 2, "额敏河区"),
    YLHQ(WatershedCode.NLHHJXJW_LHQ, 3, "伊犁河区"),
    BOTALAMA_MANAS(WatershedCode.NLHHJXJW_LHQ, 4, "博尔塔拉、玛纳斯河区"),
    TSHBHD(WatershedCode.NLHHJXJW_LHQ, 5, "天山北坡呼图壁河以东地区诸河"),
    HAMIT_TL(WatershedCode.NLHHJXJW_LHQ, 6, "哈密、吐鲁番地区诸河"),
    YEERQIANG_TALIMU(WatershedCode.NLHHJXJW_LHQ, 7, "叶尔羌河、塔里木河区"),
    TSHNN(WatershedCode.NLHHJXJW_LHQ, 8, "天山南坡诸河"),
    KLSBN(WatershedCode.NLHHJXJW_LHQ, 9, "昆仑山北坡诸河"),
    KULEIREK_DEZONGMA(WatershedCode.NLHHJXJW_LHQ, 10, "库尔雷克、德宗马海诸湖"),
    CHIDAMU_HOBUSUN(WatershedCode.NLHHJXJW_LHQ, 11, "柴达木河、霍布逊湖"),
    GEERMU_DABUSUN(WatershedCode.NLHHJXJW_LHQ, 12, "格尔木河、达布逊湖"),
    BUHA_QINGHAI(WatershedCode.NLHHJXJW_LHQ, 13, "布哈河、青海湖"),
    SHULER(WatershedCode.NLHHJXJW_LHQ, 14, "疏勒河"),
    HEIHE(WatershedCode.NLHHJXJW_LHQ, 15, "黑河"),
    SHIYANG(WatershedCode.NLHHJXJW_LHQ, 16, "石羊河"),
    HELAN_LANG_YIN(WatershedCode.NLHHJXJW_LHQ, 17, "贺兰山、狼山、阴山以北内陆河"),
    YINSHAN_NS(WatershedCode.NLHHJXJW_LHQ, 18, "阴山以南内陆河"),
    HEBEI_BEIBU(WatershedCode.NLHHJXJW_LHQ, 19, "河北北部内陆河"),
    XIZANG_DQ(WatershedCode.NLHHJXJW_LHQ, 20, "西藏地区内陆河"),
    MAOWUWENBL(WatershedCode.NLHHJXJW_LHQ, 21, "毛乌紊闭流区"),
    UNKNOWN(WatershedCode.UNKNOWN,-1,"未知");
    private final WatershedCode watershedCode;
    private final int code;
    private final String name;


    public static WaterSystemZoningCode getByCode(WatershedCode watershedCode,int code) {
        if (watershedCode == null || watershedCode.equals(WatershedCode.UNKNOWN)) {
            return UNKNOWN;
        }
        for (WaterSystemZoningCode value : WaterSystemZoningCode.values()) {
            if (value.getWatershedCode().equals(watershedCode) && value.getCode() == code) {
                return value;
            }
        }
        return UNKNOWN;
    }
}
